FROM openjdk:21
WORKDIR /app
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

COPY zey-inno-gateway-1.0-SNAPSHOT.jar /app/gateway.jar
RUN chmod +r /app/gateway.jar
ENTRYPOINT ["java","-cp","gateway.jar","com.inno.gateway.GatewayApplication","java","-jar","gateway.jar"]


